﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Core.Entities
{
    public class Department : Entity
    {
        /// <summary>
        /// 部门负责人ID
        /// </summary>
        public Guid? ManagerID { get; set; }

        /// <summary>
        /// 部门负责人
        /// </summary>
        [ForeignKey("ManagerID")]
        public virtual User Manager { get; set; }

        /// <summary>
        /// 父节部门ID
        /// </summary>
        public Guid ParentID { get; set; }
    }
}
